package com.bwhx.eruler.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.Pinlei;
import com.bwhx.eruler.dao.PinleiDAO;

@Repository
public class PinleiDAOImpl extends BaseDaoImpl<Pinlei> implements PinleiDAO{
	
	public PinleiDAOImpl() {
		this.setNs("com.bwhx.eruler.mapper.PinleiMapper.");
	}

	@Override
	public List<Pinlei> list(Page p) {
		return getSqlSession().selectList(this.getNs() + "list", p);
	}

	@Override
	public Integer count(Pinlei pinlei) {
		return getSqlSession().selectOne(this.getNs() + "count", pinlei);	
	}

	@Override
	public void del(String ppid) {
		getSqlSession().delete(this.getNs() + "del", ppid);
		
	}

	/*@Override
	public List<BuyerSdk> findByBuyerId(BuyerSdk buyerSdk) {
		return getSqlSession().selectList(this.getNs() + "findByBuyerId", buyerSdk);

	}
*/
}
